package com.freight.core.dao;

import com.freight.core.base.FreightBaseDao;
import com.freight.core.entity.Log;
import org.springframework.data.jpa.repository.Query;

/**
 * 日志数据处理层
 * @describe x
 */
public interface LogDao extends FreightBaseDao<Log, Long> {

    @Query(value = "select * from t_log u where u.username = ?1 or u.request_url = ?2 ORDER BY u.create_time desc limit 10,10",nativeQuery = true)
    Log findSearchTenRecord(String username, String url);
}
